package cn.kgc.shiro03.util;

import java.util.Random;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/7/28
 * @Description:
 */
public class SaltUtil {

    public static  String  getSalt(Integer count){

        char[] chars = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890".toCharArray();

        StringBuilder stringBuilder = new StringBuilder();
        Random random = new Random();
        for (Integer integer = 0; integer < count; integer++) {

            int i = random.nextInt(chars.length);
            stringBuilder.append(chars[i]);
        }

        return stringBuilder.toString();
    }

}
